package com.cq.hd.system.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.system.api.vo.HfMccVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "hd-o2o-system-service", contextId = "hf-mcc-api")
public interface TbHfMccApi {

    // 根据id获取mcc列表数据
    @GetMapping("/system/hfMcc/listHfMccById")
    Result<List<HfMccVo>> listHfMccById(@RequestParam(value = "id", defaultValue = "0") Integer id);

    // 获取商家/商户行业类型
    @GetMapping("/system/hfMcc/listHfMccByGrade")
    Result<List<HfMccVo>> listHfMccByGrade(@RequestParam("grade") int grade);

    // 根据mccCode获取商家/商户行业类型
    @GetMapping("/system/hfMcc/listHfMccByMccCodes")
    Result<List<HfMccVo>> listHfMccByMccCodes(@RequestParam("mccList") Set<String> mccList);
}
